﻿using Abp.Dependency;
using GN.Pay.Core.Entities;
using GN.Pay.Core.Values;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.Core.Runtime
{
    /// <summary>
    /// App 安全 
    /// </summary>
    public interface IAppSecurity : ISingletonDependency
    {
        /// <summary>
        /// 加密
        /// </summary>
        /// <param name="app">应用</param>
        /// <returns></returns>
        AppSecurityInfo Encrypt(MerchantAppInfo app);

        /// <summary>
        /// 解密
        /// </summary>
        /// <param name="app">应用</param>
        /// <returns></returns>
        AppSecurityInfo Decrypt(MerchantAppInfo app);
    }
}
